﻿
namespace Suzsoft.Smart.Data
{
    public static class ConnConfigurationSelected
    {
        public static string ConfigName
        { 
            set;
            get; 
        }
        public static string DBType
        {
            set;
            get;
        }
        public static string DBAddress
        {
            set;
            get;
        }
        public static string DBName
        {
            set;
            get;
        }
        public static string DBUser
        {
            set;
            get;
        }
        public static string DBPwd
        {
            set;
            get;
        }
        public static string ServerURL
        {
            set;
            get;
        }
    }

    public class ConnConfiguration
    {
        public string ConfigName
        {
            set;
            get;
        }
        public string DBType
        {
            set;
            get;
        }
        public string DBAddress
        {
            set;
            get;
        }
        public string DBName
        {
            set;
            get;
        }
        public string DBUser
        {
            set;
            get;
        }
        public string DBEncryptedPwd
        {
            set;
            get;
        }
        public string DBUnencryptedPwd
        {
            get
            {
                CustomDesEncryption entity = new CustomDesEncryption();
                return entity.DecryptString(DBEncryptedPwd);
            }
        }
        public string ServerURL
        {
            set;
            get;
        }
        public bool IsApply
        {
            set;
            get;
        }
    }

    public enum CrudFlag
    {
        新增,
        查询,
        修改,
        删除
    }
}
